VintaSoft Imaging .NET SDK 15.2: Documentation for .NET developer
Vintasoft.Imaging.Drawing.Wpf Namespace / WpfLinearGradientBrush Class / WpfLinearGradientBrush Constructors / WpfLinearGradientBrush Constructor(RectangleF,GradientStop[])
Syntax Exceptions Requirements SeeAlso
In This Topic
WpfLinearGradientBrush Constructor(RectangleF,GradientStop[])
In This Topic
Initializes a new instance of the WpfLinearGradientBrush class.
Syntax
'Declaration

Public Function New( _
ByVal rectangle
A System.Drawing.RectangleF structure that specifies the bounds of the linear gradient.
As System.Drawing.RectangleF, _
ByVal ParamArray gradientStops
The gradient stops of the brush.
() As Vintasoft.Imaging.Drawing.GradientStop _
)

Parameters

rectangle
A System.Drawing.RectangleF structure that specifies the bounds of the linear gradient.
gradientStops
The gradient stops of the brush.
Exceptions
ExceptionDescription
Thrown if gradientStops is null.
Thrown if gradientStops length is less than 2.
Requirements

Target Platforms: .NET 11; .NET 10; .NET 9; .NET 8; .NET 6; .NET Framework 4.8, 4.7, 4.6, 4.5, 4.0, 3.5

See Also